﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;

namespace Mesne
{
    public static class AppSettings
    {
        public static class Communication
        {
            public static string Uri { get { return ConfigurationManager.AppSettings["URI"]; } }
        }

        public static class Configuration
        {
            public static string FilePath { get { return ConfigurationManager.AppSettings["SystemConfigFile"]; } }
        }

        public static class Executor
        {
            public static int CommandActivationCycle
            {
                get
                {
                    int retval;
                    return int.TryParse(ConfigurationManager.AppSettings["CommandActivationCycle"], out retval) ? retval : 500;
                }
            }
        }
    }
}
